import http from '@/utils/http/axios';


//获取部门列表 (用户管理 添加用户使用)
export function fetchDepartmentList() {
    return http.request({
        url: `/system/department/fetchDepartmentList`,
        method: 'get',
    })
}

export function fetchDepartmentDetailsList() {
    return http.request({
        url:'/system/department/fetchDepartmentDetailsList',
        method:'get'
    })
}

//新增部门
export function addDepartment(params) {
    return http.request({
        url: '/system/department/addDepartment',
        method: 'post',
        params
    })
}

//删除部门
export function deleteDepartment(params) {
    return http.request({
        url: `/system/department/deleteDepartment/${params}`,
        method: 'delete'
    })
}

//更新部门
export function updateDepartment(params) {
    return http.request({
        url: `/system/department/updateDepartment`,
        method: 'put',
        params
    })
}


//获取行业列表
export function fetchIndustryList() {
    return http.request({
        url: '/system/industry/fetchIndustryList',
        method: 'get'
    })
}

